﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_XoaSanPhamDang1.aspx.cs" Inherits="Admin_Admin_XoaSanPhamDang1" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<center><h2>Xóa Sản Phẩm</h2></center>
    <table>
    <tr>
    <td><asp:Label ID="Label1" runat="server" Text="Nhập Mã Sản Phẩm:"></asp:Label></td>
    <td> <asp:TextBox ID="txtMaSanPham" runat="server" MaxLength="10"></asp:TextBox></td>
    <td>
        <asp:RequiredFieldValidator ID="rqfvMaSP" runat="server" 
            ErrorMessage="RequiredFieldValidator" ControlToValidate="txtMaSanPham">*</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
    <td colspan="2" align="center"> 
        <asp:Button ID="btnXoa" runat="server" Text="Ok" 
            onclick="Button1_Click" Width="100px" /></td>
    </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlSanPham" runat="server">
                <table>
                <tr>
                <td rowspan="4">
                    <asp:Image ID="imgHinhAnh" runat="server" /></td>
                 <td>
                 <table>
                 <tr>
                 <td>Tên sản phẩm:</td>
                 <td>
                     <asp:Label ID="lblTenSanPham" runat="server" Text=""></asp:Label></td></tr>
                  <tr>
                  <td>Mô tả:</td>
                  <td>
                     <asp:Label ID="lblMoTa" runat="server" Text=""></asp:Label></td></tr>
                   <tr>
                   <td>Nhà sản xuất:</td>
                    <td>
                     <asp:Label ID="lblNhaSanXuat" runat="server" Text=""></asp:Label></td></tr>
                 </table>
                 </td>
                </tr>
                <tr><td>
                    <asp:Button ID="btnXoa1" runat="server" Text="Xóa" Width="70px" 
                        onclick="btnXoa1_Click" /></td></tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Panel ID="Panel1" runat="server" BackColor="#6699FF" Height="80px" 
        Width="200px">
    <center>
        Xóa thành công!<br /> 
    <br />
    <br />
    <asp:Button ID="btnOK" runat="server" Text="OK" />
    </center>

    </asp:Panel>
    <asp:HiddenField ID="HiddenField1" runat="server" />
    <cc1:ModalPopupExtender ID="modelXoaThanhCong" runat="server" TargetControlID="HiddenField1" PopupControlID="Panel1" CancelControlID="btnOK">
    </cc1:ModalPopupExtender>
    
    <asp:Panel ID="Panel2" runat="server" BackColor="#6699FF" Height="80px" 
        Width="200px">
    <center>
        Xóa không thành công!<br /> 
    <br />
    <br />
    <asp:Button ID="btnOK1" runat="server" Text="OK" />
    </center>

    </asp:Panel>
    <asp:HiddenField ID="HiddenField2" runat="server" />
    <cc1:ModalPopupExtender ID="modelKhongThanhCong" runat="server" TargetControlID="HiddenField2" PopupControlID="Panel2" CancelControlID="btnOK1">
    </cc1:ModalPopupExtender>
</asp:Content>

